package com.loma.module_main

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import com.loma.common.router.PathConfig
import com.loma.common.utils.ext.singleClick
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        button_1.singleClick {
            ARouter.getInstance().build(PathConfig.login).navigation()

        }
        button_2.singleClick {
            ARouter.getInstance().build(PathConfig.vistor).navigation()

        }
    }
}